
package com.be.beadmin.basicData.repository;

import com.be.beadmin.basicData.entity.Supplier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author chenwei
* @date 2022-12-23
**/
public interface SupplierRepository extends JpaRepository<Supplier, String>, JpaSpecificationExecutor<Supplier> {

    Supplier findSupplierByIdAndDelete(String id, Integer delete);


    List<Supplier> findSupplierBySupplierCodeAndDelete(String id, Integer delete);


    Supplier findSupplierById(String id);

}